package com.stylefeng.guns.common.persistence.model;

import com.stylefeng.guns.common.enums.SingleResultEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "t_single_expect")
@NoArgsConstructor
public class SingleExpect {

    public SingleExpect(String mid) {
        this.mid = mid;
    }

    /**
     * 主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;

    /**
     * 比赛id
     */
    private String mid;

    /**
     * 主队进球预期
     */
    @Column(name = "home_score_expect")
    private Double homeScoreExpect;

    /**
     * 客队进球预期
     */
    @Column(name = "away_score_expect")
    private Double awayScoreExpect;

    /**
     * 主队独赢概率
     */
    @Column(name = "home_win_probability")
    private Double homeWinProbability;

    /**
     * 客队独赢概率
     */
    @Column(name = "away_win_probability")
    private Double awayWinProbability;

    /**
     * 预期盘口
     */
    private Double handicap;

    /**
     * 澳门（Bet365）亚盘
     */
    @Column(name = "asian_handicap")
    private Double asianHandicap;

    /**
     * 上盘独赢概率
     */
    @Column(name = "win_probability")
    private Double winProbability;

    /**
     * 精算赔率
     */
    @Column(name = "actuarial_odds")
    private Double actuarialOdds;

    /**
     * 立博赌赢赔率
     */
    @Column(name = "lb_odds")
    private Double lbOdds;

    /**
     * 威廉独赢赔率
     */
    @Column(name = "wl_odds")
    private Double wlOdds;

    /**
     * 预测结果
     */
    private String forecast = "0";

    /**
     * 实际结果
     */
    private String result;

    /**
     * 主队是否低水
     */
    private String isLow;

}